package com.building18.service;

import com.building18.pojo.Permission;

import java.util.HashMap;
import java.util.List;

public interface PermissionService {
    List<Permission> selectPermission();


    HashMap<String,List> getAllPerms(Integer id);

    Integer saveNewPerms(Integer id, List<Integer> ids);

    Integer updatePermission(Permission permission);

    Integer deletePermission(Integer id);

    void addPermsByFile(List<Permission> data);

    void beforeDeleteRole(Integer id);

    List<Permission> selectAllMenuPerms(Integer id);

    List<String> selectAllButtonPerms();
}
